package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 营销任务对象 mak_task
 *
 * @author weixiao
 * @date 2023-01-27
 */
@TableName("mak_task")
public class Task extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 任务id */
    @Excel(name = "任务id")
    @TableId(type = IdType.AUTO)
    @TableField("id")
    private Long id;

    /** 任务名称 */
    @Excel(name = "任务名称")
    @TableField("tname")
    private String tname;

    /** 可完成任务 */
    @Excel(name = "可完成任务")
    @TableField("task")
    private String task;

    /** 参与限制 */
    @Excel(name = "参与限制")
    @TableField("participant")
    private String participant;

    /** 次数限制 */
    @Excel(name = "次数限制")
    @TableField("times")
    private String times;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setTname(String tname)
    {
        this.tname = tname;
    }

    public String getTname()
    {
        return tname;
    }
    public void setTask(String task)
    {
        this.task = task;
    }

    public String getTask()
    {
        return task;
    }
    public void setParticipant(String participant)
    {
        this.participant = participant;
    }

    public String getParticipant()
    {
        return participant;
    }
    public void setTimes(String times)
    {
        this.times = times;
    }

    public String getTimes()
    {
        return times;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("tname", getTname())
            .append("task", getTask())
            .append("participant", getParticipant())
            .append("times", getTimes())
            .toString();
    }
}
